
<div class="entry">
	<div class="upload_images item">
		<div class="title">商品封面<!-- (建议尺寸:442*442) -->：</div>
		<br>
		
		<div class="image_show">
			{{#if $Cache.new_goods.preview_img_url}}
				<img bind-src="{{$Cache.new_goods.preview_img_url}}?imageView/1/w/160">
			{{/if}}
			<img-uploader
				upload-server-url="{{config.other.upload_image}}"
				text="上传封面图片"
				bind-input-key="$Cache.new_goods.preview_img_url"
				bind-status="{{'$Cache.shelves.preview_img_url_upload_status'}}"
				one-way="true"
				style="display:inline-block;"
				max-width="512"
				>
			</img-uploader>
		</div>
		<div class="title">商品详情图：</div>
		<br>
		<br>
		<div>
			{{#each $Cache.shelves.detail_img_urls}}
				<img-uploader
					bind-input-key="url"
					url="{{url}}"
					bind-status="{{'status'}}"
					text="上传商品详情图"
					style="float: left; "
					max-width="1200"
					>
				</img-uploader>
			{{/each}}
		</div>
	</div>

	<div class="goods-name item">商品名称：<input type="text" name="goods-title" class="goods-title android" bind-input="{{'$Cache.new_goods.goods_name'}}" value="{{$Cache.new_goods.goods_name}}" /></div>

	<div class="kinds item">
		可用类目：
		{{#each $Cache.shelves.bus_tags}}
			{{#if !_checked}}
			<div event-click="{{'$Top.$Event.tag.use_tag'}}" class="kinds-item" title="点击添加">{{tag_name}}</div>
			{{/if}}
		{{/each}}
		<div class="add-tag">
			<input type="text" class="goods-tag android" value="{{$Cache.tag.new_tag_name}}" bind-input="{{'$Cache.tag.new_tag_name'}}">
			<button event-click="{{'$Event.tag.add_new_tag'}}">添加分类</button>
		</div>
	</div>
	<div class="kinds item">
		已选类目：
		{{#each $Cache.shelves.bus_tags}}
			{{#if _checked}}
			<div event-click="{{'$Top.$Event.tag.unuse_tag'}}" class="kinds-item" title="点击移除">{{tag_name}}</div>
			{{/if}}
		{{/each}}
	</div>

	<div class="price item">价格：￥<input type="text" name="goods-price" class="goods-price android" bind-input="{{'$Cache.new_goods.price'}}" value="{{$Cache.new_goods.price}}" /></div>

	<!-- <div class="fare item">运费：<input type="text" name="goods-fare" class="goods-fare" bind-input="{{'$Cache.new_goods.fare'}}" value="{{$Cache.new_goods.fare}}" /></div> -->

	<div class="fare item">库存：<input type="text" name="goods-num" class="goods-num android" bind-input="{{'$Cache.new_goods.num'}}" value="{{$Cache.new_goods.num}}" /></div>

	<div class="fare item">单位：<input type="text" name="goods-unit" class="goods-unit android" bind-input="{{'$Cache.new_goods.unit'}}" value="{{$Cache.new_goods.unit||'件'}}" /></div>
	</div>
	<div class="fare item">
		<label for="">标记为虚拟商品：
		<android:switch bind-input="{{'$Cache.new_goods.is_virtual'}}" checked="{{$Cache.new_goods.is_virtual}}"></android:switch>
		</label>
		<i>（注释：虚拟商品意味着无需收货地址即可购买）</i>
	</div>
	<div class="fare item">
		<label for="">关闭货到付款支付方式：
		<android:switch bind-input="{{'$Cache.new_goods.only_online_pay'}}" checked="{{$Cache.new_goods.only_online_pay}}"></android:switch>
		</label>
		<i>（注释：意味着该商品只能用在线支付的方式来进行支付）</i>
	</div>
	<div class="amount_result item">
	</div>
	
	<div class="summary item">
		<div class="title">商品简述：</div><textarea name="summary" class="goods_summary android" placeholder="不超过150字" maxlength="150" bind-input="{{'$Cache.new_goods.intro'}}" value="{{$Cache.new_goods.intro}}"></textarea>
	</div>

	<div class="summary item">
		<div>商品详细介绍：</div>
		<ueditor 
			style="display: inline-block;"
			bind-input-key="$Cache.new_goods.detail_content" 
			value-key="$Cache.new_goods.detail_content" 
			init-key="$Cache.new_goods">
			<!-- 但init-key所对应的内容开始存在时，初始化编辑区域 -->
		</ueditor>
	</div>

	
</div>
